package com.nowcoder.community.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

/**
 * @ClassName ConfigTest
 * @Description
 * @Author hhwu
 * @Date 2022/5/12 22:40
 * Version 1.0
 **/
@Configuration
public class TestConfig {

    @Bean
    public SimpleDateFormat simpleDateFormat() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");// 装入容器的是返回的对象
    }
}
